package crew.gwt.client.domain;

import java.io.Serializable;

public interface PersistableEntity<T> extends Serializable {
	
	Serializable getId();
	String getIdFieldName();

	/**
	 * @return a table containing the values of attributes
	 */
	String[] getValues();

	/**
	 * @return a table containing the names of attributes
	 */
	String[] getHeadersValues();
	
	/**
	 * @return a copy of entity without id attribute
	 */
	T getCopy();

}
